package com.weng.bigdata.micro.service.warehouse.adapter.fallback;

import com.weng.bigdata.micro.service.common.Constants;
import com.weng.bigdata.micro.service.warehouse.adapter.feign.WarehouseExecuteFeignService;
import com.weng.bigdata.micro.service.warehouse.adapter.model.req.ExecuteSqlReq;
import com.weng.framework.core.model.ResponseData;
import org.springframework.stereotype.Component;

/**
 * @author wengzhonghui
 * @date 2021/4/2 11:07
 */
@Component
public class WarehouseExecuteFallBack implements WarehouseExecuteFeignService {
		@Override
		public ResponseData queryBySqlAndParam(ExecuteSqlReq executeSqlReq) {
				return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
		}

		@Override
		public ResponseData queryBySqlAndParamAsync(ExecuteSqlReq executeSqlReq) {
				return ResponseData.failed(Constants.DEFAULT_FAIL_MSM);
		}
}
